//
//  CycleWaveView.h
//  iOSHeartAnimation
//
//  Created by ddy on 2018/8/9.
//  Copyright © 2018年 ddy. All rights reserved.
//  浪花

#import <UIKit/UIKit.h>

@interface CycleWaveView : UIView
/** wave 速度 */
@property (nonatomic, assign) CGFloat  c_speed;
/** wave 波浪幅度高度 */
@property (nonatomic, assign) CGFloat  c_waveHeight;
/** wave 波浪幅度高度+水深高度 = 整体高度 */
@property (nonatomic, assign) CGFloat  c_waveTotallHeight;


/**
 * 开始wave
 */
- (void)c_startWaving;

/**
 * 结束waving
 */
- (void)c_stopWave;
/**
 * 设置波浪颜色和透明度
 */
- (void)c_setfirstWaveColor:(UIColor *)firstWaveColor firstWaveAlpha:(CGFloat)alpha1 secondWaveColor:(UIColor *)secondWaveColor secondWaveAlpha:(CGFloat)alpha2;


@end


/**
 useExPlain:
 
 - (CycleWaveView *)waveView{
     if(!_waveView){
     _waveView = [[CycleWaveView alloc]initWithFrame:CGRectMake(0, 150, [UIScreen mainScreen].bounds.size.width, 100)];
     }
     return  _waveView;
 }
 - (void)c_initWave{
     [self.view addSubview:self.waveView];
     self.waveView.c_speed = 3.0;
     self.waveView.c_waveHeight = 5.0;
     self.waveView.c_waveTotallHeight = 200;
     [self.waveView c_setfirstWaveColor:[UIColor redColor] firstWaveAlpha:0.3 secondWaveColor:[UIColor orangeColor] secondWaveAlpha:0.3];
     [self.waveView c_startWaving];
 }
 */
